package com.kintreda.ieco_server.core.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * 项目启动初始化
 * @author Administrator
 *
 */
public class BlastInitListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent sct) {
		
//		 WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(sct.getServletContext());
//		 IUserService userService = (IUserService)wac.getBean("userService");
//
//
//		 //4.初始化redisService
//		 RedisService redisService = (RedisService)wac.getBean("redisService");
//		 Parameters.userService = userService;
//		 Parameters.redisService = redisService;
//
//		 //初始化用户信息列表
//		 Parameters.initUserList();
//
//		 ISettingService settingService=(ISettingService) wac.getBean("settingService");
//		 Parameters.settingService = settingService;
//		 Parameters.settingService = settingService;
//		 //初始化字典信息
//		 Parameters.initSettingMap();
//
		 //初始化邮编信息
		 //ZipAreaService zipAreaService = (ZipAreaService) wac.getBean("zipAreaService");
		 //zipAreaService.initNewsAreaData();
	}
	
	
}
